<?php
/**
 * Created by PhpStorm.
 * User: 刚
 * Date: 2017/7/26
 * Time: 0:01
 */
include_once('BoolSingleton.php');
include_once('HTMLPage.php');
include_once('HTMLPageBuilder.php');
include_once('HTMLPageDirector.php');

define('BR', '<' . 'BR' . '>');

echo 'BEGIN TESTING BUILDER PATTERN' . BR;
echo BR;

$pageBuilder = new HTMLPageBuilder();
$pageDirector = new HTMLPageDirector($pageBuilder);
$pageDirector->buildPage();
$page = $pageDirector->getPage();
echo $page->showPage();

echo BR . BR;
echo 'END TESTING BUILDER PATTERN' . BR;
